package com.sale.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sale.common.mybatis.core.mapper.BaseMapperPlus;
import com.sale.system.domain.PullDown;
import com.sale.system.domain.SysCategory;
import com.sale.system.domain.dto.SysCategoryDto;
import com.sale.system.domain.vo.SysCategoryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description mapper
 * @Date 23-12-05
 * @Author hl
 **/
public interface SysCategoryMapper extends BaseMapperPlus<SysCategoryMapper, SysCategory, SysCategory> {

    /**
     * 类别管理查询
     *
     * @param build,pageQuery
     * @return 类别管理
     */
    Page<SysCategoryDto> selectCategoryList(@Param("page") Page<SysCategoryVo> build,@Param(Constants.WRAPPER) Wrapper<SysCategoryVo> buildQueryWrapper);

    /**
     * 下拉
     */
    List<PullDown> selectCategorySelList(String categoryType);
}
